$out = $this->getOutput();
if ( !$source->isGood() ) {
- $out->addWikiText( "<p class=\"error\">\n" .
- $this->msg( 'importfailed', $source->getWikiText() )->parse() . "\n</p>" );
+ $out->addWikiText( "<div class=\"error\">\n" .
+ $this->msg( 'importfailed', $source->getWikiText() )->parse() . "\n</div>" );
} else {
$importer = new WikiImporter( $source->value, $this->getConfig() );
if ( !is_null( $this->namespace ) ) {
$statusRootPage = $importer->setTargetRootPage( $this->rootpage );
if ( !$statusRootPage->isGood() ) {
$out->wrapWikiMsg(
- "<p class=\"error\">\n$1\n</p>",
+ "<div class=\"error\">\n$1\n</div>",
[
'import-options-wrong',
$statusRootPage->getWikiText(),
if ( $exception ) {
# No source or XML parse error
$out->wrapWikiMsg(
- "<p class=\"error\">\n$1\n</p>",
+ "<div class=\"error\">\n$1\n</div>",
[ 'importfailed', $exception->getMessage() ]
);
} elseif ( !$result->isGood() ) {
# Zero revisions
$out->wrapWikiMsg(
- "<p class=\"error\">\n$1\n</p>",
+ "<div class=\"error\">\n$1\n</div>",
[ 'importfailed', $result->getWikiText() ]
);
} else {